import sys, pygame, random
from pygame.locals import *

pygame.init()

size = width, height = 480, 480
screen = pygame.display.set_mode(size)
black,white=(0,0,0),(255,255,255)

def draw_game():
    pygame.draw.rect(screen, white, (0, 0, width, height))

    pygame.draw.line(screen, black, (160, 0), (160, 480), 5)
    pygame.draw.line(screen, black, (320, 0), (320, 480), 5)
    pygame.draw.line(screen, black, (0, 160), (480, 160), 5)
    pygame.draw.line(screen, black, (0, 320), (480, 320), 5)

    

while True:
    event = pygame.event.wait()

    pos = None

    if event.type == pygame.QUIT:
        pygame.quit()
        sys.exit()
    draw_game()
    pygame.display.flip()
